//
//  MappingExampleViewController.m
//  MappingExample
//

#import "MappingExampleViewController.h"

@implementation MappingExampleViewController

- (void)viewDidLoad {
    [super viewDidLoad];
	
	map = [[MKMapView alloc] initWithFrame:[self.view bounds]];
	map.mapType = MKMapTypeSatellite;
	map.showsUserLocation = YES;
	
	CLLocationCoordinate2D coords = CLLocationCoordinate2DMake(37.331689,-122.03071);
	
	float zoomLevel = 0.002;
	MKCoordinateRegion region = MKCoordinateRegionMake(coords,
													   MKCoordinateSpanMake(zoomLevel, zoomLevel));
	
	[map setRegion:[map regionThatFits:region] animated:YES];
	
	[self.view addSubview:map];
}

- (void)dealloc {
	[map release];
    [super dealloc];
}

@end
